﻿using Application.Common.Interface;
using Application.Plugins;
using Infrastructure.Services;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
using TouchSocket.Core;
using TouchSocket.Sockets;

namespace Infrastructure
{
    public static class DependencyInjection
    {
        public static IServiceCollection AddInfrastructure(this IServiceCollection services, IConfiguration configuration)
        {

            #region 注入一个client
            services.AddTransient<ICustomTcpClient, CustomTcpClient>();

            #endregion

            return services;
        }
    }
}
